package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName OceanengineGetProceduralPackage
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/20 17:12
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "查询程序化创意包的返回参数")
public class OceanengineGetProceduralPackage {
    /**
     * message : OK
     * code : 0
     * data : {"audience_package_id":144}
     * request_id : ######
     */

    private String message;
    private int code;
    private DataBean data;
    private String request_id;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "查询程序化创意包的返回参数实体")
    public static class DataBean {
        /**
         * audience_package_id : 144
         */
        private List<OceanengineGetProceduralPackagePageBean> page_info;
        private List<OceanengineGetProceduralPackageListBean> list;
        @NoArgsConstructor
        @Data
        @ApiModel(value = "查询程序化创意包的返回参数实体-分页")
        public static class OceanengineGetProceduralPackagePageBean {
            @ApiModelProperty(value = "\t页数")
            private Long page;
            @ApiModelProperty(value = "\t页面大小")
            private Long page_size;
            @ApiModelProperty(value = "总数")
            private Long total_number;
            @ApiModelProperty(value = "总页数")
            private Long total_page;
        }
        @NoArgsConstructor
        @Data
        @ApiModel(value = "查询程序化创意包的返回参数实体-集合")
        public static class OceanengineGetProceduralPackageListBean {
            @ApiModelProperty(value = "程序化创意包id")
            private Long id;
            @ApiModelProperty(value = "程序化创意包名")
            private String name;
            @ApiModelProperty(value = "创建时间")
            private String create_time;
            @ApiModelProperty(value = "广告主名字列表")
            private String[] advertisers;
            @ApiModelProperty(value = "1表示可用，2表示不可用（只有在传参传入ad_id是才会真实判断是否可用，未传入ad_id均返回1）")
            private Long status;

        }
    }
}
